// 导入http库
import http from '../../utils/http';

export default {
  // 查询
  queryChildDict(data) {
    return http.post("/api/dict/child", data)
  },
  // 保存
  saveDict(data) {
    return http.post("/api/dict/save", data)
  },
  // 查询树
  queryDictTree(data) {
    return http.get("/api/dict/get", data)
  },
  updateDict(data) {
    return http.put("/api/dict/update", data)
  },
  deleteDict(data) {
    return http.delete("/api/dict/delete", data)
  },
  deleteDictGroup(data) {
    return http.delete("/api/dict/deleteGroup", data)
  },
  queryDictChildren(data) {
    return http.post("/api/dict/children", data)
  }
}
